package di.finaldi;

import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.AnnotationConfigApplicationContext;

public class DiAppMain {
	
	public static void main(String[] args) {
		ApplicationContext context=new AnnotationConfigApplicationContext(ConfigDemo.class);
		System.out.println(context.getBean("si"));
		System.out.println(context.getBean("person2"));
		System.out.println(context.getBean("ds"));
	}

}